package bingfa.entity;

import java.util.Timer;

/**
 * Created by Administrator on 2016/3/1.
 */
public class MyThread extends Thread {
    private String str;

    public MyThread(String str){
        this.str = str;
    }

    public void run(){
        Timer timer = new Timer();
        timer.schedule(new MyTask(str), 1000, 2000);
    }
}
